home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8820 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: REPOST:  Newbie Question -- byte order
  5. Date: Wed, 06 Mar 96 15:01:48 GMT
  6. Organization: none
  7. Message-ID: <826124508snz@genesis.demon.co.uk>
  8. References: <4hg3u1$8d6@nnrp1.news.primenet.com> <4hjcmq$678@inet-nntp-gw-1.us.oracle.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4hjcmq$678@inet-nntp-gw-1.us.oracle.com>
  15.            wkaufman@wkaufman.us.oracle.com "William Kaufman" writes:
  16.  
  17. >    So, for instance, assuming sizeof(short) == 2, this program
  18.  
  19. And also assuming that CHAR_BIT == 8.
  20.  
  21. ...
  22.  
  23. >will print "0x12 0x34" on a big-endian machine, or "0x34 0x12" on a
  24. >little-endian machine.
  25.  
  26. -- 
  27. -----------------------------------------
  28. Lawrence Kirby | fred@genesis.demon.co.uk
  29. Wilts, England | 70734.126@compuserve.com
  30. -----------------------------------------
  31.